<h1><?php echo $title_for_page; ?></h1>
<br/><br/>
<p id='btn-create' class='box'>
	<a href='<?= base_url(); ?>admin/filiacao/cadastro'>
		<span>Nova Filiacao</span>
	</a>
</p>
<div class='fix'></div>
<table class='tablesorter' id='table'>
    <thead>
        <tr>
            <th class='t-center' scope='col'>Cód</th>
            <th class='t-center' scope='col'>Pai</th>
            <th class='t-center' scope='col'>Mae</th>
            <th class='t-center' scope='col'>Ações</th>
        </tr>
    </thead>
    <?php foreach ( $filiacoes as $filiacao ): ?>
    <tbody>
        <tr>
            <td scope='row'><?php echo $filiacao->codfiliacao; ?></td>
            <td scope='row'><?php echo $filiacao->pai; ?></td>
            <td scope='row'><?php echo $filiacao->mae; ?></td>
            <td scope='row' class='t-center'>
            	<a href='filiacao/alterar/<?php echo $filiacao->codfiliacao; ?>'>
                  <img src='<?= base_url(); ?>public/design/ico-edit.gif' class='ico' alt='Editar' />
                </a>
                <a href='filiacao/excluir/<?php echo $filiacao->codfiliacao; ?>'>
                  <img src='<?= base_url(); ?>public/design/ico-delete.gif' class='ico' alt='Deletar' />
                </a>
            </td>
        </tr>
    </tbody>
    <?php endforeach; ?>
</table>
<script type="text/javascript">
(document).ready(function(){
	$('#table').dataTable();
	});
</script>